Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Displaying Rendered • View rawDownload


docs/agents/conventions/tests.md afa2cdbc331b4de26759e37ef2c464353254d474 (afa2cdbc) Text, 581 B

Test conventions

Applies when editing T383838tests/**/*.{py,js}.

• Backend: T383838tests/backend/test_*.py with pytest + asyncio auto mode.
• Frontend: T383838tests/frontend/*.test.js with vitest + T383838@vue/test-utils.
• Mock T383838window.api for page tests. Assert toasts when outcomes are user-visible.
• Prefer focused files over full suite unless the user asks for broad runs.
• Landlock tests that apply the sandbox must run in a subprocess (one restrict per process).
• Long-running / notification soak suites can hang. Prefer timeouts and avoid piping pytest through T383838tail in agent shells.


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────